package com.yanqu.road.entity.log.cross.hsisland;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_hs_island_image_unlock", desc = "海神岛-形象解锁日志", autoSave = true, dataUpload = true, eventName = "seagod_lock", uploadCk = true, isCross = true)
public class LogCrossHsIslandImageUnlock extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "用户id")
    private long userId;

    @FieldTypeAnnotation(desc = "形象ID", dataAttribute = "seagod_image")
    private int imageId;

    public LogCrossHsIslandImageUnlock(int activityId, int groupId, long userId, int imageId) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.userId = userId;
        this.imageId = imageId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
